cmake_minimum_required(VERSION 2.8)

set(MODULE_NAME "open62541_demo")

if(${MDC_SDK})
  set(CMAKE_SYSROOT ${MDC_SDK}/sysroot)
else()
  set(CMAKE_SYSROOT "")
endif()

link_libraries(${CMAKE_SYSROOT}/usr/local/lib)
#set(CMAKE_CXX_FLAGS "-std=c++11")

#find_package(open62541 REQUIRED)

add_definitions(-DUA_ENABLE_SUBSCRIPTIONS_EVENTS)

add_executable(opc_ua_client opc_ua_client.cpp)

target_include_directories(opc_ua_client PRIVATE ${CMAKE_SYSROOT}/usr/local/include/)

target_link_libraries(opc_ua_client open62541)
